<template>
  <div class="body">
    <el-row type="flex" justify="center">
      <el-col :lg="20" :sm="24" :xs="24">
        <el-row :gutter="10">
          <el-col
            :lg="4"
            v-for="(item, index) in data"
            :key="index"
            class="tit-box"
            :md="6"
            :sm="8"
            :xs="12"
          >
            <div class="body-icon">
              <h3>
                <a :href="item.url" class="t-tit" target="_blank">{{ item.name }}</a>
              </h3>
            </div>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "HomePageBody",
  props: ["data"],
};
</script>

<style scoped lang="less">
.body {
  margin-top: 5px;
  padding-bottom: 20px;
  min-height: 500px;
  min-width: 482px;
}
.body-icon {
  height: 100px;
  line-height: 100px;
  text-align: center;
  background-color: #bf794e;
  border-radius: 5px;
  color: #fff;
}
.t-tit {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
  &:hover {
    background-color: #2f3542;
    color: #ff9900;
    font-size: 18px;
  }
}
.tit-box {
  margin: 10px 0 0 0;
}
</style>
